import 'package:flutter/widgets.dart';
import 'package:flutter_dva/flutter_dva.dart';
import 'package:flutter_hooks/flutter_hooks.dart' hide Store;

Store useDvaStore() {
  return use(
    _DvaStoreHook(),
  );
}

class _DvaStoreHook extends Hook<Store> {
  @override
  _DvaStoreHookState createState() =>_DvaStoreHookState();
}

class _DvaStoreHookState extends HookState<Store, _DvaStoreHook> {
  late Store store = Provider().store!;
  @override
  Store build(BuildContext context) {
    return store;
  }
}


